package dao;

import model.MarketRegion;

import java.util.List;

public interface MarketRegionDao {
    /**
     * 根据行政区域的名称查询MarketRegion表中的信息
     */
    MarketRegion selectByName(String name);

    // 根据id查询market_region
    MarketRegion selectByPrimaryKey(Integer id);

    int insert(MarketRegion marketRegion);

    List<MarketRegion> selectByType(Byte type);
}
